package trees;

public class IteratorTree {
    public static void main(String[] args) {
        TreeNode treeNode = TreeNode.buildTree(1);

        treeNode.preTraverse(treeNode);
        System.out.println();
        treeNode.middleTraverse(treeNode);
        System.out.println();
        treeNode.lastTraverse(treeNode);
    }
}
